package com.lindroy.todomvp.util

import android.view.View
import android.widget.TextView
import androidx.annotation.StringRes
import com.google.android.material.snackbar.Snackbar

/**
 * @author Lin
 * @date 2021/6/25
 * @function
 */
fun View.showSnackBar(message: String) {
    Snackbar.make(this, message, Snackbar.LENGTH_LONG).show()
}


fun TextView.textString() = text.toString()